package com.ruoyi.hqfinance.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.hqfinance.domain.HqNetworkBillVerify;
import com.ruoyi.hqfinance.domain.vo.HqNetworkBillVerifyVo;
import com.ruoyi.hqfinance.mapper.HqNetworkBillVerifyMapper;
import com.ruoyi.hqfinance.service.HqNetworkBillVerifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqNetworkBillVerifyServiceImpl implements HqNetworkBillVerifyService {
    @Autowired
    private HqNetworkBillVerifyMapper hqNetworkBillVerifyMapper;
    @Override
    public List<HqNetworkBillVerify> collect(HqNetworkBillVerifyVo vo) {
        PageHelper.startPage(vo.getPageDate());
        List<HqNetworkBillVerify> verifies = hqNetworkBillVerifyMapper.collect(vo);
        assert verifies != null;
        for (HqNetworkBillVerify hqNetworkBillVerify : verifies){
            hqNetworkBillVerify.setSettleTime("系统默认");
            hqNetworkBillVerify.setVerifyBy("系统");
            hqNetworkBillVerify.setVerifyNetworkName("系统");
        }
        return verifies;
    }
}
